<?php
class Portfolio extends PortfoliosAppModel {

	var $name = 'Portfolio';
	var $useTable = "portfolios_portfolios";
	var $actsAs = array(
		'Extend.Sluggable' => array('separator' => '_', 'overwrite' => true),
		'Extend.SoftDeletable' => array()
		);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $hasMany = array(
		'Upload' => array(
			'className' => 'Portfolios.Upload',
			'foreignKey' => 'portfolio_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => 'Upload.order ASC',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);
	
	var $hasAndBelongsToMany = array(
		'Category' => array(
			'className' => 'Portfolios.Category',
			'joinTable' => 'portfolios_categories_portfolios',
			'foreignKey' => 'portfolio_id',
			'associationForeignKey' => 'category_id',
			'unique' => true,
			'conditions' => array(),
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		)
	);

}
?>